home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_09
/
9n09062a
< prev
next >
Wrap
Text File
|
1991-06-05
|
481b
|
28 lines
/*
* ts2vn.c -- Convert from Transfer Syntax
* to Value Notation.
*/
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "asn1.h"
#define BUFFER_SIZE 32768
char buffer[BUFFER_SIZE];
int
main(int argc, char *argv[])
{
char *p = buffer;
int c;
for (p = buffer; (c = fgetc(stdin)) != EOF; *p++)
*p = (char) c;
show_value_notation(buffer, p - buffer, 0);
return 0;
}